//获取历史记录会话列表
import request from "../request";
import type { ApiResponse } from "../request";
import type { CreateSessionRequestResponseType } from "./createSession";
interface GetSessionHistoryListRequestResponseType {
  page: number;
  pages: number;
  records: CreateSessionRequestResponseType[];
  size: number;
  total: number;
}
export const getSessionHistoryList = async (): Promise<
  ApiResponse<GetSessionHistoryListRequestResponseType>
> => await request.get("/ai/session/list");
